package com.bff.gaia.mix.api.xjoin2.partition;

import com.alibaba.fastjson.JSONObject;
import com.bff.gaia.api.java.functions.KeySelector;
import com.bff.gaia.api.java.tuple.Tuple5;
import com.bff.gaia.mix.api.xjoin2.core.table.XjoinInfo;
import com.bff.gaia.types.Row;

import static com.bff.gaia.mix.api.xjoin2.core.utils.KeyUtil.buildKey;

public class SideKeySclector implements KeySelector<Tuple5<Integer,String,String,String,Integer>, Integer> {

	@Override
	public Integer getKey(Tuple5<Integer,String,String,String,Integer> value) throws Exception {
		return value.getField(4);
	}
}